package edu.ccut.saturn.studio.wfg.dialog.vocationallogicdialog;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

import edu.ccut.saturn.studio.wfg.wfgmodel.ExtendAttributeForLogicKey;

public class ExtendAttributeForLogicKeyLabelProvider implements
		ITableLabelProvider {

	public Image getColumnImage(Object element, int columnIndex) {
		return null;
	}

	public String getColumnText(Object element, int columnIndex) {
		ExtendAttributeForLogicKey extendAttributeForLogicKey = (ExtendAttributeForLogicKey)element; 
		if (columnIndex == 0) {
			return extendAttributeForLogicKey.getId();
		} if (columnIndex == 1) {
			return extendAttributeForLogicKey.getParameter();
		}
		
		return ""; 
	}

	public void addListener(ILabelProviderListener listener) {
	}

	public void dispose() {
	}

	public boolean isLabelProperty(Object element, String property) {
		return false;
	}

	public void removeListener(ILabelProviderListener listener) {
	}
}
